package me.sealer.ssm.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 功能描述： $ NewRoleRequest
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2020年01月10日 14时55分07秒
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "角色新增请求报文体")
public class NewRoleRequest {
    @NotBlank(message = "角色名不能为空")
    @ApiModelProperty(value = "角色名", required = true)
    private String name;

    @NotBlank(message = "角色描述不能为空")
    @ApiModelProperty(value = "角色描述", required = true)
    private String description;

    @ApiModelProperty(value = "角色权限列表", required = true)
    private List<Integer> permissions;

    @ApiModelProperty(value = "角色菜单列表", required = true)
    private List<Integer> menus;
}
